import java.util.Scanner;

/**
   Reads a string, checks to see if it is a palindrome, and prints
      "Yes" or "No", accordingly. 
   Input: the value of s, a string
   Output: "Yes" or "No"
*/
public class PalFind
{
   public static void main(String[] args)
   {
      // Read string and convert to lowercase
      Scanner in = new Scanner(System.in);
      String ins = in.nextLine();
      String insOfUpper = ins.toUpperCase(); 
      int strlen = insOfUpper.length();
      int middle = strlen / 2;
      for(int i = 0; i < middle; i++)
      {
         char a = insOfUpper.charAt(strlen - 1 - i);
         char b = insOfUpper.charAt(i);
         if(a != b | (a == 'A' & b == 'O'))
         {
            System.out.println("No");
            return;
         }
      }
      System.out.println("Yes");
   }
}